﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Xml.Serialization;

namespace Sovigaz.DataProvider
{
    public partial class SovigazDbContext
    {
        public DbSet<Partner> Partners { get; set; }
    }

    [Table("Partners")]
    public class Partner : AuditableEntity
    {
        public Partner()
        {
            PartnerName = string.Empty;
        }

        [Key]
        public int PartnerID { get; set; }

        public int LocationID { get; set; }

        public string PartnerCode { get; set; }

        public string PartnerName { get; set; }

        public string Representer { get; set; }

        public string Role { get; set; }

        public string Address1 { get; set; }

        public string Address2 { get; set; }

        public string ContactName1 { get; set; }

        public string ContactName2 { get; set; }

        public string Phone1 { get; set; }

        public string Phone2 { get; set; }

        public string Description { get; set; }
    }

    public class PartnerComplex
    {
        public PartnerComplex()
        {
            PartnerName = string.Empty;
        }

        public int PartnerID { get; set; }

        public int LocationID { get; set; }

        public string LocationName { get; set; }

        public string PartnerCode { get; set; }

        public string PartnerName { get; set; }

        public string Representer { get; set; }

        public string Role { get; set; }

        public string Address1 { get; set; }

        public string Address2 { get; set; }

        public string ContactName1 { get; set; }

        public string ContactName2 { get; set; }

        public string Phone1 { get; set; }

        public string Phone2 { get; set; }

        public string Description { get; set; }

        public bool IsDeleted { get; set; }
    }
}